package gameManager;

import java.awt.Point;

public abstract class NonPlayerCharacter extends GameCharacter{

    
    public NonPlayerCharacter (Point startPosition, int startDirection){
        setInteractablePosition(startPosition);
        setDirection(startDirection);
    } 

    public void move() {
        int dx = (int) Math.round(Math.cos(getDirection())*getSpeed());
        int dy = (int) Math.round(Math.sin(getDirection())*getSpeed());
        getInteractablePosition().translate(dx, dy);
    }
}
